<%
	org.languageguide.user.User user = org.languageguide.user.UserManager.getUser(session);
	String email;
	String target;
	out.println("<span style=\"float:right;\">");
	if (user != null){
		String userName = user.getUserName();
		if (userName == null){
			userName = user.getEmail();
		}
		target = user.getEditingLanguage();
		out.println(userName);
		out.println(" | <a href=\"/user/profile.jsp\">Profile</a> | <a href=\"/user/logout.jsp\">Sign Out</a>");
		//System.out.println("target" + target);
	}
	else {
		out.println("<a href=\"/user/login.jsp\">Login</a>");
		//session.setAttribute("redirect_url", request.getRequestURL() );
	}
		out.println("</span>");
%>
